package com.sxsy.datasource.bizimpl;

import com.sxsy.datasource.bean.WsjcBean;
import com.sxsy.datasource.biz.WsjcData;
import com.sxsy.datasource.mapper.SwjcDataMapper;
import com.sxsy.datasource.mapper.WsjcDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WsjcDataImpl implements WsjcData {
    @Autowired
    private WsjcDataMapper wsjcDataMapper;

    public void insertBjdata(String Code, String Wz, String Value, String Stime, String Etime) {
        wsjcDataMapper.insertBjdata(Code,Wz,Value,Stime,Etime);

    }

    public List<WsjcBean> DoesKeyExit() {
        return wsjcDataMapper.DoesKeyExit();
    }


    public void RtsaveNewDevkeyValue(String key, String Wz) {
        wsjcDataMapper.RtsaveNewDevkeyValue(key,Wz);
    }


    public void RtdeleteRow(String key) {
        wsjcDataMapper.RtdeleteRow(key);
    }


    public void RtupdateWz(String key, String Wz) {
        wsjcDataMapper.RtupdateWz(key,Wz);
    }


    public void HistoryTableinsert(String key, String Wz, String Value, String Date) {
        wsjcDataMapper.HistoryTableinsert(key,Wz,Value,Date);
    }


    public void RtsaveNewSsKeyValue(String key, String Wz,String Value, String Date) {
        wsjcDataMapper.RtsaveNewSsKeyValue(key,Wz,Value,Date);
    }
}
